<div id ="search">
 搜索结果：<br />
 <% if  @contents==nil %>
 <em>&nbsp;&nbsp;&nbsp;暂无结果，请重新搜索：</em>
 <% else %>
                  <% for c in  @contents %>
                  <%= c.name%> <br />
                 <%=c.content%><p><br /><br />
                 <%= link_to '查看' ,  {:controller => 'content', :action => 'article', :id => "#{c.id}.html" }%>
                 <br /><hr>
                  <% end %>
  <% end %>
</div>
<div id="dispaly">
</div>
